package com.xiaoxu.auth.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xiaoxu
 * @version 1.0
 * @description 验证码服务
 * @date 2023/2/2 16:14
 */
@FeignClient(value = "checkcode", fallbackFactory = CheckCodeFallBackFactory.class)
public interface CheckCodeClient {
    @PostMapping("/checkcode/verify")
    Boolean verify(@RequestParam("key") String key,@RequestParam("code") String code);
}
